package com.ellricky.baselib.adapter.clue

import com.andr.common.ui.adapter.BaseRecyclerAdapter
import com.andr.common.ui.adapter.SmartViewHolder
import com.andr.common.util.StrUtil
import com.ellricky.baselib.R
import com.ellricky.baselib.entity.clue.ClueCtEntity
import com.ellricky.baselib.entity.new.ClueCt

class ClueCtAdapter : BaseRecyclerAdapter<ClueCt>(R.layout.base_adapter_clue_ct) {
    override fun onBindViewHolder(vh: SmartViewHolder, p1: ClueCt, i: Int) {
        val title = StrUtil.filterEmpty(p1.E_Name)
        vh.text(R.id.tvTitle, title)
        vh.text(R.id.tvClue, p1.clue_num)
        vh.text(R.id.tvPhone, p1.E_Tel)
    }
}